import request from "@/utils/request";

export function getMemberListApi(data) {
  return request({
    url: "/api/customer.member/index",
    method: "post",
    data
  });
}

export function getAllocateListApi(data) {
  return request({
    url: "/api/customer.allocate/index",
    method: "post",
    data,
  });
}

export function exportAllocateApi(data) {
  return request({
    url: "/api/customer.allocate/index",
    method: "post",
    data
  });
}

export function getMemberByContactApi(data) {
  return request({
    url: "/api/customer.member/getMemberByContact",
    method: "post",
    data,
  });
}

export function doCombineApi(data) {
  return request({
    url: "/api/customer.member/doCombine",
    method: "post",
    data,
  });
}

export function createMemberApi(data) {
  return request({
    url: "/api/customer.member/create",
    method: "post",
    data
  });
}

export function getMemberDetailApi(data) {
  return request({
    url: "/api/customer.member/read",
    method: "post",
    data
  });
}

export function getAllocateDetailApi(data) {
  return request({
    url: "/api/customer.allocate/read",
    method: "post",
    data,
  });
}


export function saveMemberBaseApi(data) {
  return request({
    url: "/api/customer.member/save",
    method: "post",
    data
  });
}

export function allocateHandleApi(data) {
  return request({
    url: "/api/customer.allocate/handle",
    method: "post",
    data
  });
}

export function allocateStoreApi(data) {
  return request({
    url: "/api/customer.allocate/toHotel",
    method: "post",
    data,
  });
}

// 收藏
export function doFavApi(data) {
  return request({
    url: "/api/customer.favorite/doFav",
    method: "post",
    data,
  });
}

export function doAcquisitionApi(data) {
  return request({
    url: "/api/customer.allocate/acquisition",
    method: "post",
    data,
  });
}

export function doRecommendApi(data) {
  return request({
    url: "/api/customer.allocate/recommend",
    method: "post",
    data,
  });
}

export function doLeveldApi(data) {
  return request({
    url: "/api/customer.allocate/level",
    method: "post",
    data,
  });
}

// 签到
export function doSignApi(data) {
  return request({
    url: "/api/customer.allocate/doSign",
    method: "post",
    data,
  });
}

export function batchUpdateStatusApi(data) {
  return request({
    url: "/api/customer.allocate/batchUpdateStatus",
    method: "post",
    data,
  });
}

// 获取客资的订单列表
export function getOrderListApi(data) {
  return request({
    url: "/api/customer.order/index",
    method: "post",
    data,
  });
}
// 导出 进店未成单
export function doExportApi(data) {
  return request({
    url: "/api/customer.allocate/export",
    method: "post",
    data,
  });
}
